When and why Hashcode override in costume classes?
2004
28-Mar-2015
Why we override Hashcode in our costume classes?
Anonymous User
28-Mar-2015hashcode tells the programmer which class object it is.
OBJECT class produces one unique code for object. i.e, hexa decimal integer.
if u dont like this hexa decimal numerical value there is a chance to overridde hashcode value and whatever value give for that object then u should override hashCode() method in ur class and return it.
Anonymous User
28-Mar-2015